
class Read:

    def get_infolist(self):
        file_object = open(file_name() , 'r');
        list = []
    
        for line in file_object:
            info=eval(line)
            if len(info['single_review'])!=0:
                for i in range(0,len(info['single_review'])):
                     list.append({'ASIN':info['ASIN'],'time':info['single_review'][i]['time']})
        return list

def file_name():
        return '../txt_package/all_review.txt'    
    